package ru.demo.abstarctservice.adapter.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ru.demo.abstarctservice.adapter.mapper.AbstractMapper;
import ru.demo.abstarctservice.adapter.mapper.dto.PersonDto;
import ru.demo.abstarctservice.app.api.AbstractService;
import ru.demo.abstarctservice.entity.Person;

@RestController
@RequestMapping("/api/v1/persons")
public class PersonController extends AbstractController<Person, PersonDto> {

    public PersonController(AbstractService<Person> service,
                            AbstractMapper<Person, PersonDto> mapper) {
        super(service, mapper);
    }

}
